package com.example.mapper;
import com.example.pojo.Vehicle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 车辆信息表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-05-06
 */
@Mapper
@Repository
public interface VehicleMapper extends BaseMapper<Vehicle> {
    //根据id修改车辆信息
    int updateVehicle(Vehicle vehicle);
    //根据编号删除
    int deleteById(int id);
    //查询未使用的车辆
    List<Vehicle> selectCarNmae();

}
